package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.WarnInfoHistoryMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.WarnInfoHistoryService;
import com.the4man.framework.model.WarnInfo;
import com.the4man.framework.model.WarnInfoHistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("warnInfoHistoryService")
public class WarnInfoServiceHistoryImpl extends AbstractService<WarnInfo> implements WarnInfoHistoryService {
    @Autowired
    WarnInfoHistoryMapper warnInfoMapper;

    public WarnInfoServiceHistoryImpl() {
    }

    public int countByWarn() {
        return this.warnInfoMapper.countByWarn();
    }

    public int handleWarn(WarnInfoHistory warnInfo) {
        return this.warnInfoMapper.handleWarn(warnInfo);
    }
}
